3.2098 \(\int (d+e x)^2 \left (a+b x+c x^2\right ) \, dx\)

Optimal. Leaf size=69 \[ \frac{(d+e x)^3 \left (a e^2-b d e+c d^2\right )}{3 e^3}-\frac{(d+e x)^4 (2 c d-b e)}{4 e^3}+\frac{c (d+e x)^5}{5 e^3} \]

[Out]

((c*d^2 - b*d*e + a*e^2)*(d + e*x)^3)/(3*e^3) - ((2*c*d - b*e)*(d + e*x)^4)/(4*e
^3) + (c*(d + e*x)^5)/(5*e^3)

_______________________________________________________________________________________

Rubi [A]  time = 0.130808, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 1, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.056 \[ \frac{(d+e x)^3 \left (a e^2-b d e+c d^2\right )}{3 e^3}-\frac{(d+e x)^4 (2 c d-b e)}{4 e^3}+\frac{c (d+e x)^5}{5 e^3} \]

Antiderivative was successfully verified.

[In]  Int[(d + e*x)^2*(a + b*x + c*x^2),x]

[Out]

((c*d^2 - b*d*e + a*e^2)*(d + e*x)^3)/(3*e^3) - ((2*c*d - b*e)*(d + e*x)^4)/(4*e
^3) + (c*(d + e*x)^5)/(5*e^3)

_______________________________________________________________________________________

Rubi in Sympy [F]  time = 0., size = 0, normalized size = 0. \[ \frac{c e^{2} x^{5}}{5} + d^{2} \int a\, dx + d \left (2 a e + b d\right ) \int x\, dx + \frac{e x^{4} \left (b e + 2 c d\right )}{4} + x^{3} \left (\frac{a e^{2}}{3} + \frac{2 b d e}{3} + \frac{c d^{2}}{3}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  rubi_integrate((e*x+d)**2*(c*x**2+b*x+a),x)

[Out]

c*e**2*x**5/5 + d**2*Integral(a, x) + d*(2*a*e + b*d)*Integral(x, x) + e*x**4*(b
*e + 2*c*d)/4 + x**3*(a*e**2/3 + 2*b*d*e/3 + c*d**2/3)

_______________________________________________________________________________________

Mathematica [A]  time = 0.0398977, size = 73, normalized size = 1.06 \[ \frac{1}{3} x^3 \left (a e^2+2 b d e+c d^2\right )+\frac{1}{2} d x^2 (2 a e+b d)+a d^2 x+\frac{1}{4} e x^4 (b e+2 c d)+\frac{1}{5} c e^2 x^5 \]

Antiderivative was successfully verified.

[In]  Integrate[(d + e*x)^2*(a + b*x + c*x^2),x]

[Out]

a*d^2*x + (d*(b*d + 2*a*e)*x^2)/2 + ((c*d^2 + 2*b*d*e + a*e^2)*x^3)/3 + (e*(2*c*
d + b*e)*x^4)/4 + (c*e^2*x^5)/5

_______________________________________________________________________________________

Maple [A]  time = 0.002, size = 70, normalized size = 1. \[{\frac{c{e}^{2}{x}^{5}}{5}}+{\frac{ \left ({e}^{2}b+2\,dec \right ){x}^{4}}{4}}+{\frac{ \left ( a{e}^{2}+2\,bde+c{d}^{2} \right ){x}^{3}}{3}}+{\frac{ \left ( 2\,aed+{d}^{2}b \right ){x}^{2}}{2}}+a{d}^{2}x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  int((e*x+d)^2*(c*x^2+b*x+a),x)

[Out]

1/5*c*e^2*x^5+1/4*(b*e^2+2*c*d*e)*x^4+1/3*(a*e^2+2*b*d*e+c*d^2)*x^3+1/2*(2*a*d*e
+b*d^2)*x^2+a*d^2*x

_______________________________________________________________________________________

Maxima [A]  time = 0.81499, size = 93, normalized size = 1.35 \[ \frac{1}{5} \, c e^{2} x^{5} + \frac{1}{4} \,{\left (2 \, c d e + b e^{2}\right )} x^{4} + a d^{2} x + \frac{1}{3} \,{\left (c d^{2} + 2 \, b d e + a e^{2}\right )} x^{3} + \frac{1}{2} \,{\left (b d^{2} + 2 \, a d e\right )} x^{2} \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + b*x + a)*(e*x + d)^2,x, algorithm="maxima")

[Out]

1/5*c*e^2*x^5 + 1/4*(2*c*d*e + b*e^2)*x^4 + a*d^2*x + 1/3*(c*d^2 + 2*b*d*e + a*e
^2)*x^3 + 1/2*(b*d^2 + 2*a*d*e)*x^2

_______________________________________________________________________________________

Fricas [A]  time = 0.180996, size = 1, normalized size = 0.01 \[ \frac{1}{5} x^{5} e^{2} c + \frac{1}{2} x^{4} e d c + \frac{1}{4} x^{4} e^{2} b + \frac{1}{3} x^{3} d^{2} c + \frac{2}{3} x^{3} e d b + \frac{1}{3} x^{3} e^{2} a + \frac{1}{2} x^{2} d^{2} b + x^{2} e d a + x d^{2} a \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + b*x + a)*(e*x + d)^2,x, algorithm="fricas")

[Out]

1/5*x^5*e^2*c + 1/2*x^4*e*d*c + 1/4*x^4*e^2*b + 1/3*x^3*d^2*c + 2/3*x^3*e*d*b +
1/3*x^3*e^2*a + 1/2*x^2*d^2*b + x^2*e*d*a + x*d^2*a

_______________________________________________________________________________________

Sympy [A]  time = 0.129229, size = 73, normalized size = 1.06 \[ a d^{2} x + \frac{c e^{2} x^{5}}{5} + x^{4} \left (\frac{b e^{2}}{4} + \frac{c d e}{2}\right ) + x^{3} \left (\frac{a e^{2}}{3} + \frac{2 b d e}{3} + \frac{c d^{2}}{3}\right ) + x^{2} \left (a d e + \frac{b d^{2}}{2}\right ) \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((e*x+d)**2*(c*x**2+b*x+a),x)

[Out]

a*d**2*x + c*e**2*x**5/5 + x**4*(b*e**2/4 + c*d*e/2) + x**3*(a*e**2/3 + 2*b*d*e/
3 + c*d**2/3) + x**2*(a*d*e + b*d**2/2)

_______________________________________________________________________________________

GIAC/XCAS [A]  time = 0.200668, size = 101, normalized size = 1.46 \[ \frac{1}{5} \, c x^{5} e^{2} + \frac{1}{2} \, c d x^{4} e + \frac{1}{3} \, c d^{2} x^{3} + \frac{1}{4} \, b x^{4} e^{2} + \frac{2}{3} \, b d x^{3} e + \frac{1}{2} \, b d^{2} x^{2} + \frac{1}{3} \, a x^{3} e^{2} + a d x^{2} e + a d^{2} x \]

Verification of antiderivative is not currently implemented for this CAS.

[In]  integrate((c*x^2 + b*x + a)*(e*x + d)^2,x, algorithm="giac")

[Out]

1/5*c*x^5*e^2 + 1/2*c*d*x^4*e + 1/3*c*d^2*x^3 + 1/4*b*x^4*e^2 + 2/3*b*d*x^3*e +
1/2*b*d^2*x^2 + 1/3*a*x^3*e^2 + a*d*x^2*e + a*d^2*x